package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description 船只等级变更日志
 * @Author cwq
 * @Data 2022/2/22 21:31
 */
@FieldTypeAnnotation(tableName = "t_c_ck_activity_seacraftsouthsea_ship_log",desc = "南海丝路-船只等级变更日志",autoSave = true,uploadCk = true,isCross = true)
public class LogSeacraftSouthSeaShip extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动id",isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "商会id",isIndex = true)
    private String unionId;
    @FieldTypeAnnotation(desc = "原来等级")
    private long oldLevel;
    @FieldTypeAnnotation(desc = "新的等级")
    private long newLevel;
    @FieldTypeAnnotation(desc = "捐献数据",saveJson = true)
    private Map<Integer, Long> donationShipMap = new HashMap<>();

    public LogSeacraftSouthSeaShip(int activityId, String unionId, long oldLevel, long newLevel, Map<Integer, Long> donationShipMap, long time) {
        this.activityId = activityId;
        this.unionId = unionId;
        this.oldLevel = oldLevel;
        this.newLevel = newLevel;
        this.donationShipMap = donationShipMap;
        this.time = time;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public long getOldLevel() {
        return oldLevel;
    }

    public void setOldLevel(long oldLevel) {
        this.oldLevel = oldLevel;
    }

    public long getNewLevel() {
        return newLevel;
    }

    public void setNewLevel(long newLevel) {
        this.newLevel = newLevel;
    }

    public Map<Integer, Long> getDonationShipMap() {
        return donationShipMap;
    }

    public void setDonationShipMap(Map<Integer, Long> donationShipMap) {
        this.donationShipMap = donationShipMap;
    }


    @Override
    public long getUserId() {
        return 0;
    }
}
